/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fsd.semana3.aula.echothread;

import java.net.ServerSocket;
import java.net.Socket;
import java.nio.ByteBuffer;

/**
 *
 * @author nfsa
 */
public class Main {

    public static void main() throws Exception
    {
        ServerSocket listener = new ServerSocket(12345);

        while (true)
        {
            Socket socket = listener.accept();
            EchoThread thread = new EchoThread(socket);
            thread.start();
        }
    }
}
